//
//  MineFeedbackOnTheIssueQATableViewCell.swift
//  FrameProduct
//
//  Created by delegate on 2025/10/23.
//

import UIKit

class MineFeedbackOnTheIssueQATableViewCell: UITableViewCell {
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        backgroundColor = .clear
        selectionStyle = .none
        
        setupUI()
        
    }
    var titleStr: String = "" {
        didSet {
            titleLabel.text = titleStr
        }
    }
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    private func setupUI() {
        contentView.addSubview(bgView)
        bgView.addSubview(titleLabel)
        bgView.snp.makeConstraints { make in
            make.top.equalToSuperview()
            make.left.equalTo(11)
            make.right.equalTo(-11)
            make.bottom.equalTo(0)
            make.height.equalTo(45)
        }
        titleLabel.snp.makeConstraints { make in
            make.left.equalTo(15)
            make.right.equalTo(-15)
            make.top.bottom.equalToSuperview()
        }
    }
    //=================================================================
    //                            lazy
    //=================================================================
    // MARK: - lazy
    private lazy var bgView: UIView = {
        let view = UIView()
        view.backgroundColor = .lxs.hex("#152443")
        return view
    }()
    private lazy var titleLabel: UILabel = {
        let label = UILabel()
        label.text = "·连接问题:经常连接不上,连接无法上网等·充值问题:购买后没有显示套餐等·产品问题:用得不爽,我有建议·其他问题"
        label.textColor = .lxs.hex("#FFFFFF")
        label.font = .lxs.font(size: 14)
        return label
    }()
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}

extension MineFeedbackOnTheIssueQATableViewCell: ReuseIdentifiable {
    static var reuseIdentifier: String {
        String(describing: self)
    }
    
    
}
